package cn.whdream;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Hello {
	static class Study implements Runnable{
		private boolean flag = true;
		@Override
		public void run() {
			while (flag) {
				System.out.println("study....");
			}	
		}
		public void stop() {
			flag = false;
		}
	}
	public static void main(String[] args) throws InterruptedException {
//		Study s = new Study();
//		new Thread(s).start();
//		Thread.sleep(3000);
//		s.stop();
		Date date = new Date();
		SimpleDateFormat CHINA = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINA);
		SimpleDateFormat US = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.US);
		SimpleDateFormat CHINESE = new SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.CHINESE);
		System.out.println("CHINA"+CHINA.format(date));
		System.out.println("US"+US.format(date));
		System.out.println("CHINESE"+CHINESE.format(date));
	}
}
